﻿@model HdipCricketClub.ViewModels.ScorecardAbandonedFixtureDetailViewModel

@{
    ViewBag.Title = "EnterCompletedFixtureDetail";
}

<h2>Enter Completed Fixture Detail</h2>

@using(@Html.BeginForm())
{
    <fieldset>
    <legend>Fixture:</legend>
    <br />
    @Html.DisplayFor(ModelItem => Model.ScorecardFixture.Team.Club.ShortName) @Html.DisplayFor(ModelItem => Model.ScorecardFixture.Team.name)
    Vs @Html.DisplayFor(ModelItem => Model.ScorecardFixture.Opponent.club_name) @Html.DisplayFor(ModelItem => Model.ScorecardFixture.Opponent.team_name)
    <br />
    On @Html.DisplayFor(ModelItem => Model.ScorecardFixture.date)
    @Html.HiddenFor(ModelItem => Model.ScorecardFixture.fixture_id)
    @Html.HiddenFor(ModelItem => Model.ScorecardFixture.team_id)
    @Html.HiddenFor(ModelItem => Model.ScorecardFixture.opponent_id)
    @Html.HiddenFor(ModelItem => Model.ScorecardFixture.type)
    @Html.HiddenFor(ModelItem => Model.ScorecardFixture.home)
    @Html.HiddenFor(ModelItem => Model.ScorecardFixture.date)
    @Html.HiddenFor(ModelItem => Model.ScorecardFixture.start_time)
    @Html.HiddenFor(ModelItem => Model.ScorecardFixture.no_of_players)
    @Html.HiddenFor(ModelItem => Model.ScorecardHeaderDetail.fixture_id)
    @Html.HiddenFor(ModelItem => Model.ScorecardHeaderDetail.result_id)
    @Html.HiddenFor(ModelItem => Model.ScorecardHeaderDetail.scorecard_entered)
    @Html.HiddenFor(ModelItem => Model.ScorecardResultType.result_type_id)
    
    </fieldset>
    <fieldset>
    <legend>Please enter the following details for this @Html.DisplayFor(ModelItem => Model.ScorecardResultType.result_type) fixture</legend>
    <br />
    <span class="fixture_detail_heading">Who won the Toss</span>
    <br /><br />
    @Html.DisplayFor(ModelItem => Model.ScorecardFixture.Team.Club.ShortName)
    @Html.RadioButtonFor(ModelItem => Model.ScorecardHeaderDetail.won_toss, true)
    @Html.DisplayFor(ModelItem => Model.ScorecardFixture.Opponent.club_name)
    @Html.RadioButtonFor(ModelItem => Model.ScorecardHeaderDetail.won_toss, false)
    <br /><br />
    <span class="fixture_detail_heading">Who batted first</span>
    <br /><br />
    @Html.DisplayFor(ModelItem => Model.ScorecardFixture.Team.Club.ShortName)
    @Html.RadioButtonFor(ModelItem => Model.ScorecardHeaderDetail.batted_first, true)
    @Html.DisplayFor(ModelItem => Model.ScorecardFixture.Opponent.club_name)
    @Html.RadioButtonFor(ModelItem => Model.ScorecardHeaderDetail.batted_first, false)
    <br />
    </fieldset>
    <p>
        <input type="submit" value="Enter Details" />
    </p>
}